<section class="container home">
	<div class="content">
		<div class="search-bar">
			<div class="search">
				<?php 
				$form = $this->beginWidget('CActiveForm', array(
				    'id' => 'search',
				    'enableAjaxValidation' => false,
				    'action' => 'find-yard-sale.html',
				    'method' => 'get',
				    'enableClientValidation' => true,
				    'htmlOptions' => array(
				        'class' => 'form-horizontal',
				        //'enctype' => 'multipart/form-data',
				    ),
				        ));?>
					<input type="text" name="search" placeholder="Search a yard sale place by city, zip code, ..." />
					<input type="submit" class="icon-search" value="" />
				<?php
				$this->endWidget();?>
			</div>
		</div>
		<div class="box">
			<div class="left">
				<div class="box-title">
					<h3>seller</h3>
				</div>
				<div class="box-content">
					<ul>
						<?php 
						foreach ($seller as $value) {
							echo '<li>' . $value['title'] .'</li>';
						}?>
					</ul>
					<div class="btn">
						<a href="#"><img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/btn-post.png" /></a>
					</div>
				</div>
			</div>
			<div class="right">
				<div class="box-title">
					<h3>buyer</h3>
				</div>
				<div class="box-content">
					<ul><?php 
						foreach ($buyer as $value) {
							echo '<li>' . $value['title'] .'</li>';
						}?>
					</ul>
					<div class="btn">
						<a href="#"><img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/btn-find.png" /></a>
					</div>
				</div>
			</div>
		</div>
		<div class="box2">
			<div class="left">
				<div class="box-title">
					<img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/icon-feedback.png" width="23" height="20">
					<h3>Customer feedback</h3>
				</div>
				<div class="box2-content">
					<?php
					if(count($feedback) >0):?>
						<div class="avatar">
							<?php
							if(isset($feedback['user']['photo'])):?>
								<img src="<?=Yii::app()->baseUrl?>/timthumb.php?src=<?=Yii::app()->theme->baseUrl?>/images/<?=$feedback['user']['photo']?>&h=80&w=74">
							<?php
							elseif($feedback['user']['facebook_id'] !== null):?>
								<img src="https://graph.facebook.com/<?=$feedback['user']['facebook_id']?>/picture?width=74">
							<?php else:?>
							else:?>
								<img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/avatar.png">
							<?php endif;?>
						</div>
						<div class="feedback-content">
							<?= substr($feedback['content'], 0, 200);?> ...
						</div>
					<?php endif;?>
				</div>
			</div>
			<div class="right">
				<div class="box-title">
					<i class="icon-news"></i>
					<h3>News</h3>
				</div>
				<div class="box2-content">
					<div class="content-news">
						<div class="title-news">
							<a href="#">Hong Kong: Calm before the storm?</a>
							<i>From CNN - 20/11/2014</i>
						</div>
						<div class="title-news">
							<a href="#">Will Turkish boots on ground defeat ISIS?</a>
							<i>From CNN - 20/11/2014</i>
						</div>
						<div class="title-news">
							<a href="#">Turkey votes on war as ISIS closes in</a>
							<i>From CNN - 20/11/2014</i>
						</div>
						<div class="title-news">
							<a href="#">Horses 'helped me beat cancer twice'</a>
							<i>From CNN - 20/11/2014</i>
						</div>
						<div class="title-news">
							<a href="#">Horses 'helped me beat cancer twice'</a>
							<i>From CNN - 20/11/2014</i>
						</div>
						<div class="title-news">
							<a href="#">Horses 'helped me beat cancer twice'</a>
							<i>From CNN - 20/11/2014</i>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</section>
<section class="container">
	<div class="google-map">
		<div id="map_canvas"></div>		
		<div class="list-items" id="list-items">
			<div class="close">
				<span></span>
			</div>
			<ul id="items" class="items">
			</ul>
			<div class="loadmore">
				<a href="javascript:void(0);" id="loadmore">LOAD MORE</a>
			</div>
			<div class="icon-more">
				<a href="#">
					<img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/icon-load.png">
				</a>
			</div>
		</div>
		<!--end list-->
	</div>
</section>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl?>/frontend/js/maps.js"></script>